﻿<div class="navbar navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container">
            <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span
                class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span>
            </a><a class="brand" href="#">XSockets.NET WebRTC Example</a>
            <div class="nav-collapse">
                <ul class="nav">
                    <li class="active"><a href="/">Home</a></li>
                    <li class=""><a href="http://xsockets.net">Visit XSockets.NET</a></li>
                </ul>
            </div>
            <p class="pull-right navbar-text">
                Users online <span class="badge badge-info right" id="numOfPeers">0</span>
            </p>
        </div>
    </div>
</div>
<div class="container-fluid">
    <div class="row-fluid">
        <div class="span12">
            <div class="hero-unit" id="start">
                <div>
                    <h1 class="page-header">
                        XSockets.NET WebRTC</h1>
                    <div>
                        <p>
                            This is a example of XSockets.NET's WebRTC support using WebSockets,PeerConnection,getUserMedia
                            and more to build a Realtime audio/video chat just using the browser!
                        </p>
                    </div>
                    <div class="form-horizontal">
                        <div class="control-group">
                            <input id="nickname" autofocus type="text" style="width: 100%; height: 40px" placeholder="Enter a nickname end press start...">
                        </div>
                        <button class="btn btn-primary btn-large pull-right" id="setNickName">
                            Start
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row-fluid hidden" id="hangout">
        <div class="span4">
            <div class="well sidebar-nav">
                <h3>
                    Onliner's <small>- Choose a person</small></h3>
                <ul class="nav nav-tabs nav-stacked" id="peers">
                </ul>
            </div>
        </div>
        <div class="span8">
            <div class="row-fluid">
                <div class="span6">
                    <div class="well">
                        <video style="width: 100%" id="localVideo" autoplay="autoplay">
                        </video>
                        <h2>
                        You
                        </h2>
                            <button id="hangup" class="btn btn-danger btn-large">Hangup</button>
                    </div>
                </div>
                <!--/span-->
                <div class="span6">
                    <div class="well">
                        <div id="remoteVideo">
                        </div>
                        <h2 id="remote">
                            Remote</h2>
                    </div>
                    
                </div>
                <!--/span-->
            </div>
            <!--/row-->
        </div>
        <!--/span-->
    </div>
</div>
<footer class="navbar-fixed-bottom">
    <div class="container">
        <div class="span12">
            <p class="navbar-text">
                &copy;XSockets.NET 2012</p>
        </div>
    </div>
</footer>
<!-- not in use in this demo -->
@*<div id="modal-confirm-call" class="modal hide fade">
    <div class="modal-header">
        <h3>
            Incomming call...</h3>
    </div>
    <div class="modal-body">
        <div id="callInfo">
        </div>
    </div>
    <div class="modal-footer">
        <a href="#" id="denyCall" class="btn btn-danger">Deny</a> <a href="#" id="acceptCall"
            class="btn btn-primary">Accept</a>
    </div>
</div>*@
<div id="modal-waiting" class="modal hide fade">
    <div class="modal-header">
        <h3>
            Waiting for something to happen...</h3>
    </div>
    <div class="modal-body">
        <div>
            .....</div>
    </div>
    <div class="modal-footer">
        <a href="#" id="a2" class="btn btn-danger" data-dismiss="modal">Abort</a>
    </div>
</div>
<audio id="ringtone" src="/Content/audio/ringtone.mp3" class="hidden" loop="true">
</audio>